import { createAxios } from "~/api/util/request-wrapper";

export async function previewFile(url: string) {
  const http = createAxios();
  const res: any = await http.get(url, { responseType: "blob", headers: { "Authorization": "Bearer " + localStorage.getItem("token") } });
  return URL.createObjectURL(res);
}
